Namespaces

Types in MathNet.Numerics.LinearAlgebra.Storage

Type SparseVectorStorage<T>

Namespace MathNet.Numerics.LinearAlgebra.Storage

Parent VectorStorage<T>

Static Functions

Methods

Properties

Fields

Public Static Functions

SparseVectorStorage<T> OfEnumerable(IEnumerable<T> data)

SparseVectorStorage<T> OfIndexedEnumerable(int length, IEnumerable<Tuple<int, T>> data)

SparseVectorStorage<T> OfInit(int length, Func<int, T> init)

SparseVectorStorage<T> OfValue(int length, T value)

SparseVectorStorage<T> OfVector(VectorStorage<T> vector)

Public Methods

T[] AsArray()

T At(int index)

Retrieves the requested element without range checking.

void At(int index, T value)

Sets the element without range checking.

void Clear(int index, int count)

void Clear()

void CopySubVectorTo(VectorStorage<T> target, int sourceIndex, int targetIndex, int count, ExistingData existingData)

void CopyTo(VectorStorage<T> target, ExistingData existingData)

void CopyToColumn(MatrixStorage<T> target, int columnIndex, ExistingData existingData)

void CopyToRow(MatrixStorage<T> target, int rowIndex, ExistingData existingData)

void CopyToSubColumn(MatrixStorage<T> target, int columnIndex, int sourceRowIndex, int targetRowIndex, int rowCount, ExistingData existingData)

void CopyToSubRow(MatrixStorage<T> target, int rowIndex, int sourceColumnIndex, int targetColumnIndex, int columnCount, ExistingData existingData)

IEnumerable<T> Enumerate()

IEnumerable<ValueTuple<int, T>> EnumerateIndexed()

IEnumerable<T> EnumerateNonZero()

IEnumerable<ValueTuple<int, T>> EnumerateNonZeroIndexed()

bool Equals(VectorStorage<T> other)

bool Equals(object obj)

Determines whether the specified Object is equal to the current Object.
Parameters
object obj

The Object to compare with the current Object.

Return
bool

true if the specified Object is equal to the current Object ; otherwise, false.

Tuple<int, T> Find(Func<T, bool> predicate, Zeros zeros)

Tuple<int, T, TOther> Find2<TOther>(VectorStorage<T> other, Func<T, TOther, bool> predicate, Zeros zeros)

TState Fold2<TOther, TState>(VectorStorage<T> other, Func<TState, T, TOther, TState> f, TState state, Zeros zeros)

int GetHashCode()

Returns a hash code for this instance.
Return
int

A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

Type GetType()

void Map2To(VectorStorage<T> target, VectorStorage<T> other, Func<T, T, T> f, Zeros zeros, ExistingData existingData)

void MapIndexedInplace(Func<int, T, T> f, Zeros zeros)

void MapIndexedTo<TU>(VectorStorage<T> target, Func<int, T, TU> f, Zeros zeros, ExistingData existingData)

void MapInplace(Func<T, T> f, Zeros zeros)

void MapTo<TU>(VectorStorage<T> target, Func<T, TU> f, Zeros zeros, ExistingData existingData)

T[] ToArray()

string ToString()

Public Properties

bool IsDense get;

True if the vector storage format is dense.

T Item get; set;

Public fields

Int32[] Indices

Array that contains the indices of the non-zero values.
return Int32[]

T[] Values

Array that contains the non-zero elements of the vector.
return T[]

int ValueCount

Gets the number of non-zero elements in the vector.
return int

int Length

return int